import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '笔记id',
    align: "center",
    dataIndex: 'noteId'
  },
  {
    title: '评论id',
    align: "center",
    dataIndex: 'comId'
  },
  {
    title: '评论内容',
    align: "center",
    dataIndex: 'content'
  },
  {
    title: '点赞数',
    align: "center",
    dataIndex: 'likeCount'
  },
  {
    title: '子评论数量',
    align: "center",
    dataIndex: 'subCommentCount'
  },
  {
    title: '评论人uid',
    align: "center",
    dataIndex: 'comUserId'
  },
  {
    title: '评论人昵称',
    align: "center",
    dataIndex: 'nickname'
  },
  {
    title: '评论人Rid',
    align: "center",
    dataIndex: 'redId'
  },
  {
    title: '定位',
    align: "center",
    dataIndex: 'ipLocation'
  },
  {
    title: '评论发布时间',
    align: "center",
    dataIndex: 'time'
  },
  {
    title: '图片评论url，逗号分隔',
    align: "center",
    dataIndex: 'picturesUrl'
  },
  {
    title: '是否已发送通知',
    align: "center",
    dataIndex: 'isNotice'
  },
];

// 高级查询数据
export const superQuerySchema = {
  noteId: {title: '笔记id',order: 0,view: 'text', type: 'string',},
  comId: {title: '评论id',order: 1,view: 'text', type: 'string',},
  content: {title: '评论内容',order: 2,view: 'text', type: 'string',},
  likeCount: {title: '点赞数',order: 3,view: 'number', type: 'number',},
  subCommentCount: {title: '子评论数量',order: 4,view: 'number', type: 'number',},
  comUserId: {title: '评论人uid',order: 5,view: 'text', type: 'string',},
  nickname: {title: '评论人昵称',order: 6,view: 'text', type: 'string',},
  redId: {title: '评论人Rid',order: 7,view: 'text', type: 'string',},
  ipLocation: {title: '定位',order: 8,view: 'text', type: 'string',},
  time: {title: '评论发布时间',order: 9,view: 'datetime', type: 'string',},
  picturesUrl: {title: '图片评论url，逗号分隔',order: 10,view: 'text', type: 'string',},
  isNotice: {title: '是否已发送通知',order: 11,view: 'number', type: 'number',},
};
